package org.brisling.domain.sysman;

import javax.persistence.Column;
import javax.persistence.Entity;

import org.brisling.domain.common.BaseTreeDomain;



@Entity
public class Department extends BaseTreeDomain<Department> {
	
	@Column
	private String shortName;
	
	@Column
	private String longName;
	
	private String eName;
	
	private String iconCls;
	
	private String tel;
	
	private String fax;
	
	public String geteName() {
		return eName;
	}



	public void seteName(String eName) {
		this.eName = eName;
	}



	public String getIconCls() {
		return iconCls;
	}



	public void setIconCls(String iconCls) {
		this.iconCls = iconCls;
	}



	public String getTel() {
		return tel;
	}



	public void setTel(String tel) {
		this.tel = tel;
	}



	public String getFax() {
		return fax;
	}



	public void setFax(String fax) {
		this.fax = fax;
	}



	public Department(){
		super(Department.class);
	};
	
	

	public String getShortName() {
		return shortName==null?"":shortName;
	}

	public void setShortName(String shortName) {
		this.shortName = shortName;
	}

	public String getLongName() {
		return longName==null?"":longName;
	}

	public void setLongName(String longName) {
		this.longName = longName;
	}
	

	@Override
	public String toTreeString() {
		// TODO Auto-generated method stub
		String data = "id:"+this.getId()+",text:"+this.getName()+
				",state:"+this.getState()+",parentid:"+this.getParentid();
		return data;
	}

	
	
	

}
